package polymorphismTest;

public abstract class Pay {
    private double money;
    public Pay(){

    }
    public Pay(double money){
        this.money=money;
    }
    public abstract  void payment();
    public void setMoney(double money){
        this.money=money;
    }
    public double getMoney(){
        return money;
    }
}
